<template>
  <div class="wscn-error-container">
    <div class="wscn-error">
      <div class="bullshit">
        <div class="bullshit__oops">哎呀，页面飞向月球了!</div>
        <div class="bullshit__info">Sorry, the page you visited does not exist.</div>
        <div class="bullshit__headline">{{ message }}</div>
        <div class="bullshit__info">
          请检查您输入的URL是否正确，或单击下面的按钮返回主页。
        </div>
        <a href="" class="bullshit__return-home">返回到首页</a>
      </div>
    </div>
  </div>
</template>

<script setup>
import { computed } from "vue";
const message = computed(() => {
  return "拐球了，访问出错了...";
});
</script>

<style scoped>
.wscn-error-container {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 30%;
  left: 49%;
}

.wscn-error {
  width: 100%;
  display: flex;
}

.wscn-error .pic-parent {
  width: 100%;
}

@keyframes cloudMid {
  0% {
    top: 10px;
    left: 420px;
    opacity: 0;
  }

  20% {
    top: 40px;
    left: 360px;
    opacity: 1;
  }

  70% {
    top: 130px;
    left: 180px;
    opacity: 1;
  }

  100% {
    top: 160px;
    left: 120px;
    opacity: 0;
  }
}

@keyframes cloudRight {
  0% {
    top: 100px;
    left: 500px;
    opacity: 0;
  }

  20% {
    top: 120px;
    left: 460px;
    opacity: 1;
  }

  80% {
    top: 180px;
    left: 340px;
    opacity: 1;
  }

  100% {
    top: 200px;
    left: 300px;
    opacity: 0;
  }
}

.wscn-error .bullshit {
  position: relative;
  float: left;
  padding: 30px 0;
  overflow: hidden;
}

.wscn-error .bullshit__oops {
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  color: #1482f0;
  opacity: 0;
  margin-bottom: 20px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.wscn-error .bullshit__headline {
  font-size: 20px;
  line-height: 24px;
  color: #222;
  font-weight: bold;
  opacity: 0;
  margin-bottom: 10px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.1s;
  animation-fill-mode: forwards;
}

.wscn-error .bullshit__info {
  font-size: 13px;
  line-height: 21px;
  color: grey;
  opacity: 0;
  margin-bottom: 30px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}

.wscn-error .bullshit__return-home {
  display: block;
  float: left;
  width: 110px;
  height: 36px;
  border: 1px #1482f0 solid;
  text-decoration: none;
  border-radius: 100px;
  text-align: center;
  color: #1482f0;
  opacity: 0;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
</style>
